package com.hkts.beltweigher.salve.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author hml
 * @since 2024-07-04
 */
public class WestBeltscalesCumulativedata extends Model<WestBeltscalesCumulativedata> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 开始运行时时刻
     */
    private LocalDateTime startTime;
    /**
     * 结束运行时时刻
     */
    private LocalDateTime endTime;
    /**
     * 毫秒
     */
    private Integer ms;
    /**
     * 开始运行时的累积量t
     */
    private Float startValue;
    /**
     * 运行结束时的累积量t
     */
    private Float endValue;
    /**
     * 运行结束时的差值t
     */
    private Float totalValue;
    /**
     * 皮带秤名称
     */
    private String name;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public Integer getMs() {
        return ms;
    }

    public void setMs(Integer ms) {
        this.ms = ms;
    }

    public Float getStartValue() {
        return startValue;
    }

    public void setStartValue(Float startValue) {
        this.startValue = startValue;
    }

    public Float getEndValue() {
        return endValue;
    }

    public void setEndValue(Float endValue) {
        this.endValue = endValue;
    }

    public Float getTotalValue() {
        return totalValue;
    }

    public void setTotalValue(Float totalValue) {
        this.totalValue = totalValue;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static final String ID = "id";

    public static final String START_TIME = "start_time";

    public static final String END_TIME = "end_time";

    public static final String MS = "ms";

    public static final String START_VALUE = "start_value";

    public static final String END_VALUE = "end_value";

    public static final String TOTAL_VALUE = "total_value";

    public static final String NAME = "name";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WestBeltscalesCumulativedata{" +
                ", id=" + id +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", ms=" + ms +
                ", startValue=" + startValue +
                ", endValue=" + endValue +
                ", totalValue=" + totalValue +
                ", name=" + name +
                "}";
    }
}
